package com.example.controller.jasypt;

import com.example.pojo.vo.common.Result;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/3/3 09:49
 */
@RestController
public class IndexController {

    @Value("${spring.datasource.password}")
    private String password;

    @GetMapping({"/","index"})
    public Result index(){
        return Result.OK(password);
    }
}
